from pool_v2.models import Player, League, Week, Game, Pick, Result, UserProfile
from django.contrib import admin

class GamesInline(admin.StackedInline):
    model = Game
    extra = 2

class WeekAdmin(admin.ModelAdmin):
    fields = ['date']
    inlines = [GamesInline]
    
admin.site.register(Player)
admin.site.register(League)
admin.site.register(Week, WeekAdmin)
admin.site.register(Game)
admin.site.register(Pick)
admin.site.register(Result)
admin.site.register(UserProfile)

